# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=tiled
pkgver=1.4.2
pkgrel=0
pkgdesc="powerful tile map editor"
url="http://mapeditor.org"
arch="all"
license="Apache-2.0 AND BSD-2-Clause AND GPL-2.0-only"
makedepends="qt5-qttools-dev qt5-qtdeclarative-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bjorn/tiled/archive/v$pkgver.tar.gz"
options="!check"

build() {
	qmake-qt5 -r INSTALL_HEADERS=yes PREFIX=/usr
	make
}

package() {
	make install INSTALL_ROOT="$pkgdir"
}

sha512sums="1fddd8c8d67e4eaf116c82e276b0941e6dae7c529f2132e49da77d7e215fc7106d5fd3ef55d118f799153b57340effcf2481a131a436be7f00f61c4fc4bd45d2  tiled-1.4.2.tar.gz"
